package com.kinghood.productcenter.service.product;

import com.kinghood.infrastructure.model.dto.IdValueDTO;
import com.kinghood.productcenter.common.model.dao.product.BusinessLogDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kinghood.productcenter.common.model.dto.product.BusinessLogQueryDTO;
import com.kinghood.sharding.model.PageResponseVO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 业务日志表 服务类
 * </p>
 *
 * @author KingHood
 * @since 2023-12-20
 */
public interface IBusinessLogService extends IService<BusinessLogDO> {

    /**
     * 业务日志列表
     *
     * @param param 参数
     * @return @return {@link PageResponseVO }
     * @author jp
     * @date 2024/01/12 14:58
     */
    PageResponseVO listBusinessLog(BusinessLogQueryDTO param);

    /**
     * 列表业务日志操作类型
     *
     * @return @return {@link List }<{@link IdValueDTO }>
     * @author jp
     * @date 2024/01/12 14:58
     */
    List<IdValueDTO> listBusinessLogOperateType();

    /**
     * 下载业务日志
     *
     * @param param    参数
     * @param response 回答
     * @return
     * @author jp
     * @date 2024/01/10 17:37
     */
    void downloadBusinessLog(BusinessLogQueryDTO param, HttpServletResponse response);
}
